package com.youtitleit.model;

import java.util.ArrayList;
import java.util.List;

public class Caption {

	
	private Long id;
	
	private String name;
	
	private List<CaptionDescriptor> captionDescriptors;
	
	public void addCaption(CaptionDescriptor captionDescriptor) {
		
		if(captionDescriptors == null) {
			captionDescriptors = new ArrayList<CaptionDescriptor>();
		}
		
		captionDescriptors.add(captionDescriptor);
	}
	
	public List<CaptionDescriptor> getCaptionDescriptors() {
		return captionDescriptors;
	}
	
	public void setCaptionDescriptors(List<CaptionDescriptor> captionDescriptors) {
		this.captionDescriptors = captionDescriptors;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
}
